package com.idlecode.bean;

import java.io.Serializable;

public class DataSourceEntity implements Serializable {
    private String dsId;
    /**
     * 数据库类型
     */
    private String dbType;
    /**
     * 连接名
     */
    private String connName;
    /**
     * URL
     */
    private String connUrl;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;

    public DataSourceEntity() {
    }

    public DataSourceEntity(String dsId, String dbType, String connName, String connUrl, String username, String password) {
        this.dsId = dsId;
        this.dbType = dbType;
        this.connName = connName;
        this.connUrl = connUrl;
        this.username = username;
        this.password = password;
    }

    public String getDsId() {
        return dsId;
    }

    public void setDsId(String dsId) {
        this.dsId = dsId;
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getConnName() {
        return connName;
    }

    public void setConnName(String connName) {
        this.connName = connName;
    }

    public String getConnUrl() {
        return connUrl;
    }

    public void setConnUrl(String connUrl) {
        this.connUrl = connUrl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "DataSourceEntity{" +
                "dbType='" + dbType + '\'' +
                ", connName='" + connName + '\'' +
                ", connUrl='" + connUrl + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}